package net.hn.hnms.biz.indicator.link;

import net.hn.hnms.biz.api.safety.monitor.model.FireIndicatorVo;
import net.hn.hnms.sys.common.core.constant.ServiceNameConstants;
import net.hn.hnms.sys.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author 智呈物联 nzw
 * @date 2022/10/17
 */
@FeignClient(contextId = "MineLinkService", value = ServiceNameConstants.MINE_BASE_SERVICE,fallback = MineLinkServiceFallback.class)
@Component
public interface MineLinkService {

    @RequestMapping(value = "fire/earlyWarning/fireIndicator",method = RequestMethod.GET)
    R<FireIndicatorVo> fireIndicator();

    @RequestMapping(value = "flood/earlyWarning/floodIndicator",method = RequestMethod.GET)
    Map<String,Object> floodIndicator();

    @RequestMapping(value = "gas/earlyWarning/gasIndicator",method = RequestMethod.GET)
    Map<String,Object> gasIndicator();

    @RequestMapping(value = "dust/earlyWarning/dustIndicator",method = RequestMethod.GET)
    Map<String,Object> dustIndicator();
}
